Skip to content

feat: vite-plugin-tapi#245

Open
mismosmi wants to merge 4 commits intomainfrom
vite-plugin-tapi
Open

feat: vite-plugin-tapi#245
mismosmi wants to merge 4 commits intomainfrom
vite-plugin-tapi

Conversation

@mismosmi
Copy link
Copy Markdown
Member

No description provided.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 21, 2026

⚠️ No Changeset found

Latest commit: f972edf

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Comment on lines +77 to +89
return [
`import { serve } from "srvx";`,
`import { createRequestHandler } from "@farbenmeer/tapi/server";`,
`import { api } from ${entryImport};`,
``,
`const fetch = createRequestHandler(api, { basePath: ${JSON.stringify(basePath)} });`,
`const port = Number(process.env.PORT) || ${options.port ?? 3000};`,
``,
`const server = serve({ port, fetch });`,
`await server.ready();`,
`console.info(\`[tapi] server listening on \${server.url}\`);`,
``,
].join("\n");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eval?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

neeeeeeein
das ist gar kein eval

das ist ein "Virtual Module" 😁
gehen sie weiter hier gibt es nichts zu sehen

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ne aber tatsächlich muss ja irgendwie irgendwo ein server generiert werden der das modul importiert das die User:in erst noch selbst schreiben muss

bunny hat auch so ne codegen-funktion (generateServer oder so) die das macht

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants